package com.sanyang.lawyer.service.adm;

import com.sanyang.lawyer.entity.Adm_Address;
import com.sanyang.lawyer.mapper.adm.AdmAddressMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: lawyer
 * @description: 外部通讯录的Service层
 * @author: Mr.Wang
 * @create: 2019-10-29 10:14
 **/

@Service
public class AdmAddressService {

    @Autowired
    private AdmAddressMapper addressMapper;

    public List<Adm_Address> listall(){
        return addressMapper.listall();
    }

    public List<Adm_Address> furry(String aname){
        return addressMapper.furry(aname);
    }

    public Adm_Address getbyid(int id){
        return addressMapper.getbyid(id);
    }

    public void delete(int id){
        this.addressMapper.delete(id);
    }

    public void insert(Adm_Address address){
        this.addressMapper.insert(address);
    }

    public void update(Adm_Address address){
        this.addressMapper.update(address);
    }




}
